package com.selfdiscipline.data.local.entity

import androidx.room.Entity
import androidx.room.PrimaryKey
import java.time.LocalDateTime

/**
 * 时间记录实体类，用于存储用户的专注时间记录
 *
 * @param id 记录ID
 * @param title 标题
 * @param category 类别
 * @param durationMinutes 持续时间（分钟）
 * @param timestamp 时间戳
 */
@Entity(tableName = "time_records")
data class TimeRecordEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val title: String,
    val category: String,
    val durationMinutes: Int,
    val timestamp: LocalDateTime
) 